const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        port: 7000,
        client: {
            overlay: false,
        },
        /*proxy: {
            '/': { // 只要是以 '/' 开头的ajax请求都会自动加上 target 属性值
                target: 'http://localhost:9090',
                changeOrigin: true,
            }
        }*/
    },

    chainWebpack: config => {
        config.plugin('html')
            .tap(args => {
                args[0].title = "基于SpringBoot的电子数码商城";
                return args;
            })
    }
})